package homework.demo4.mapper;

import homework.demo4.pojo.User;
import homework.demo4.util.IDBUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserMapper implements IUserMapper{
   @Autowired
    private IDBUtil dbUtil;
    public int insert(User user){
        System.out.println("UserMapper:插入用户数据");

        dbUtil.getConnection();
       return 0;
    }
}
